package org.dromara.system.domain.bo;

import org.dromara.system.domain.JwStudentGrades;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 学生成绩业务对象 jw_student_grades
 *
 * @author Lion Li
 * @date 2024-04-26
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = JwStudentGrades.class, reverseConvertGenerate = false)
public class JwStudentGradesBo extends BaseEntity {

    /**
     * 
     */
    @NotNull(message = "不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 学生编号
     */
    @NotBlank(message = "学生编号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String studentId;

    /**
     * 课程编号
     */
    @NotBlank(message = "课程编号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String courseId;

    /**
     * 教师编号
     */
    @NotBlank(message = "教师编号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String teacherId;

    /**
     * 成绩
     */
    @NotNull(message = "成绩不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long grades;


}
